package com.atguigu.gmall.payment.service;

/**
 * ClassName: AlipayService
 * Description:
 * Date: 2022/1/4 19:02
 *
 * @version:
 * @since JDK 1.8
 */
public interface AlipayService {

    String createaliPay(Long orderId);

    boolean refund(Long orderId);

    /***
     * 关闭交易
     * @param orderId
     * @return
     */
    Boolean closePay(Long orderId);


    /**
     * 根据订单查询是否支付成功！
     * @param orderId
     * @return
     */
    Boolean checkPayment(Long orderId);
}

